﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo12//圆形类
{
    class Circle: Shape
    {
        private int radius;//半径
        public int Radius
        {
            get { return radius; }
            set { radius = value; }
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("该圆的半径为{0}，面积为{1}",this.radius,(this.radius*3.14*this.radius));
        }
    }
}
